package com.howard.app.nivada.bo;


public class Product {
	private String code;//商品编码
	private String type;//品名规格
	private Integer count;//现存量
	private Double price;//基本价
	private Double specialPrice;//基本价
	private String remark;
	
	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}


	public Integer getCount() {
		return count;
	}


	public void setCount(Integer count) {
		this.count = count;
	}


	public Double getPrice() {
		return price;
	}


	public void setPrice(Double price) {
		this.price = price;
	}


	public Double getSpecialPrice() {
		return specialPrice;
	}


	public void setSpecialPrice(Double specialPrice) {
		this.specialPrice = specialPrice;
	}


	public String getRemark() {
		return remark;
	}


	public void setRemark(String remark) {
		this.remark = remark;
	}


	public String getGroupName(){
		String group = null;
		/*
		 * 品名规格
		 * 1. 出样标准      : Y开头或GQ8008开头
		 * 2. 网购表          : G或L开头：
		 * 3. 停单停产B表: 全数字
		 * 4. 停单停产C表: T开头：
		 */
		if(type.startsWith("Y") || type.startsWith("GQ8008")){
			group = Group.GROUP_NAMES[0];
		}
		else if(type.startsWith("G") || type.startsWith("L")){
			group = Group.GROUP_NAMES[1];
		}
		else if(type.startsWith("T")){
			group = Group.GROUP_NAMES[3];
		}
		else{
			group = Group.GROUP_NAMES[2];
		}
		return group;
	}
}
